/* 首页样式 */
.home {
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 页面头部 */
.header {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 8rpx 16rpx;
  background-color: #fff;
  border-bottom: 1rpx solid #f0f0f0;
}

/* 头部左侧区域 - 地区选择器 */
.header-left {
  display: flex;
  align-items: center;
  flex-shrink: 1;
  flex-grow: 0;
  font-size: 13px;
}

/* 头部右侧区域 - 我的位置按钮 */
.header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  flex-shrink: 1;
  flex-grow: 0;
  font-size: 13rpx;
  white-space: nowrap;
  width: fit-content;
  margin-right: 20rpx;
  flex-direction: row;
  font-size: 24px;
}

/* 地区选择按钮样式 */
.region-select-button {
  display: flex;
  align-items: center;
  padding: 0;
  margin: 0;
  background-color: transparent;
  border: none;
  color: #333333;
  font-size: 24rpx;
  min-height: auto;
  height: auto;
  line-height: 1.5;
  flex-shrink: 0;
}

.region-select-button:active {
  background-color: transparent;
}

.region-text {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 240rpx;
  color: #1989fa;
  background-color: transparent;
}

.region-text:hover {
  color: #4b5cc4;
}

.location-button-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-right: 20rpx;
  justify-content: flex-start;
}

.my-location-button {
  display: flex;
  align-items: center;
  padding: 0 !important;
  margin: 0 !important;
  background-color: transparent !important;
  border: none !important;
  color: #1989fa !important;
  font-size: 24rpx !important;
  min-height: auto !important;
  height: auto !important;
  line-height: 1.5 !important;
  flex-shrink: 1 !important;
  width: auto !important;
}

.my-location-button:active {
  background-color: transparent;
  color: #0a6dd7;
}

/* 定位失败提示样式 */
.location-error-tip {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 8rpx;
  padding: 6rpx 12rpx;
  background-color: rgba(255, 77, 79, 0.9);
  color: white;
  font-size: 24rpx;
  border-radius: 4rpx;
  white-space: nowrap;
  z-index: 10;
  /* 防止提示超出屏幕 */
  max-width: 200rpx;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 城市选择区域 */
.city-selector {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24rpx;
}

.error-text {
  color: #ff4d4f !important;
}

.success-text {
  color: #52c41a !important;
}

/* 搜索区域 */
.search-container {
  padding: 24rpx 32rpx;
  background-color: #fff;
}

.city-base-filter {
  margin-top: 10rpx;
  margin-bottom: 10rpx;
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-left: 10rpx;
  margin-right: 10rpx;
  justify-content: space-between;
}

/* 筛选和排序区域 */
.filter-section {
  background-color: #fff;
  padding: 24rpx 32rpx;
  margin-bottom: 16rpx;
  border-bottom: 1rpx solid #f0f0f0;
}

/* 筛选按钮 */
.filter-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16rpx;
}

/* 筛选按钮 - 增强优先级以确保在小程序上生效 */
.filter-button {
  padding: 3rpx 4rpx !important;
  background-color: transparent !important;
  border: none !important;
  border-radius: 8rpx !important;
  font-size: 24rpx !important;
  color: #1989fa !important;
}

/* 筛选选项 */
.filter-options {
  background-color: #fff;
  padding: 0 32rpx 24rpx 32rpx;
}

/* 触摸反馈 */
.city-select-button:active,
.location-button:active,
.search-button:active,
.filter-button:active,
.retry-button:active {
  opacity: 0.7;
  transform: scale(0.98);
  transition: all 0.2s;
}


/* 定位加载中文字样式 */
.location-loading-text {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 4rpx;
  font-size: 24rpx;
  color: #1989fa;
  white-space: nowrap;
}

/* 标签样式 */
.tag-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12rpx 24rpx;
  margin-top: 20rpx;
  margin-right: 20rpx;
  border: 1rpx solid #e7f1ff;
  border-radius: 6rpx;
  background-color: #ffffff;
  font-size: 26rpx;
  color: #333333;
  box-sizing: border-box;
}

.tag-item:active {
  opacity: 0.7;
  transform: scale(0.98);
}

/* 选中标签样式 */
.tag-selected {
  border-color: #1989fa;
  background-color: #e6f7ff;
}

/* 标签文本样式 */
.tag-text {
  display: inline-block;
  font-size: 26rpx;
  color: #333333;
}

/* 选中标签文本样式 */
.tag-text-selected {
  color: #1989fa;
  font-weight: 500;
}